<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'bookmark-form',
    'enableAjaxValidation' => false,
));
?>


<?php echo $form->errorSummary($model, null, null, array('class' => 'message error')); ?>

<p>
    <?php echo $form->labelEx($model, 'url'); ?>
    <?php echo $form->textField($model, 'url', array('size' => 60, 'maxlength' => 255, 'class' => 'full')); ?>
</p>

<p>
    <?php echo $form->labelEx($model, 'title'); ?>
    <?php echo $form->textField($model, 'title', array('size' => 60, 'maxlength' => 255, 'class' => 'full')); ?>
</p>

<p>
    <?php echo $form->labelEx($model, 'bookmark_folder_id'); ?> <em>(optional)</em>
    <?php echo $form->dropDownList($model, 'bookmark_folder_id', CHtml::listData(Yii::app()->user->model->bookmarkFolders, 'id', 'name'), array('prompt' => 'select bookmark folder', 'class' => 'full')); ?>
</p>

<div class="action">
    <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('class' => 'button button-gray')); ?>
</div>

<?php
$this->endWidget();
?>